from starlette.endpoints import HTTPEndpoint
from starlette.responses import JSONResponse
from model.ModEquipmentClassifyList import equipmentClassifyListSchema,EquipmentClassifyList
from database import Session, engine
import datetime


def get_classify_list(session):
    #根据设备类型查询厂家
        classify_list = session.query(EquipmentClassifyList).all()
        return JSONResponse(equipmentClassifyListSchema.dump(classify_list, many=True).data)